<?php

namespace App\Http\Controllers;

use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Http\Request;

class Controller extends BaseController
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
    public $requestData;
    public function __construct(Request $request) {
        $this->requestData = $request;
    }
    public function returnJson($status,$messages,$data) {
        return json_encode(["status" => $status,"messages" => $messages,"data" => $data],JSON_UNESCAPED_UNICODE);
    }
}
